using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

/**
*@file       GWServer_Register_SuccessReciever.cs
*@brief      process message GWServer_Register_Success
*
*@author     graywind
*@version    1.0.0.1
*@data       2012/3/26
*/

//process GWServer_Register_Success
public class OnGWServer_Register_Success
{
    /// <summary>
    /// process message
    /// </summary>
    /// <param name="op">message operator</param>
    /// <param name="session_id">session identifier</param>
    /// <param name="msg_buffer">message buffer</param>
    /// <param name="msg_bytes">buffer length</param>
    public static void OnMapping(IMessageOperator op, Int32 session_id, byte[] msg_buffer, UInt32 msg_bytes)
    {
        //TODO
		System.Console.WriteLine("Register To Gateway Server Success!");
        op.RequestServerList(session_id);
    }
}

//register callback
partial class MessageProcTypes<ProcType, MessageProc>
{
        [MessageProcType((int)GatewayServerTypes.MessageType.GWServer_Register_Success)]
        public static GatewayServerProcessor.GatewayServerTabFunc GWServer_Register_SuccessProc = new GatewayServerProcessor.GatewayServerTabFunc(OnGWServer_Register_Success.OnMapping);
}
